package com.usian.config;

import com.github.pagehelper.PageInfo;
import com.usian.shop.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "springcloud-provider")
public interface FeignOrder {
    @RequestMapping("/order/findAlls")
    public PageInfo findAlls(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestBody Order order);
}
